﻿using System;
using System.Collections.Generic;
namespace TCPSockets.Interfaces
{
    public interface IServer
    {
        int ClientCount { get; }

        int Port { get; set; }

        bool Enabeld { get; set; }

        CTCPClient this[int Index] { get; }

        event ServerEvents.Handlers.OnClientConnectedEventHandler OnClientConnected;
        event ServerEvents.Handlers.OnClientDisconnectedEventHandler OnClientDisconnected;
        event ServerEvents.Handlers.OnDataSendEventHandle OnDataSend;
        event ServerEvents.Handlers.OnErrorEventHandler OnError;
        event ServerEvents.Handlers.OnReceivedDataEventHandler OnReceiveData;
        event ServerEvents.Handlers.OnStartEventHandler OnStart;
        event ServerEvents.Handlers.OnStopEventHandler OnStop;
    }
}
